	mui.init();
	var userinfo = app.getState() || {};
    var uid = userinfo.user_id;
    var currentPage1=1;      //买入
    var currentPage2=1;      //卖出
    var pageSize=6;
    var total_page1=0;
    var total_count1=0;
    var total_page2=0;
    var total_count2=0;
    var buy_country="中国";
    var sale_country="中国";
	
	//阻尼系数
	var deceleration = mui.os.ios ? 0.003 : 0.0009;
	mui('.mui-scroll-wrapper').scroll({
		bounce: false,
		indicators: false, //是否显示滚动条
		deceleration: deceleration
	});
	
	refresh_data();
	refresh_bank();

	mui.plusReady(function() {
		document.getElementById('yue_log_val').innerHTML = userinfo.a1_money;
		document.getElementById('jifen_log_val').innerHTML = userinfo.a2_money;
					
		document.getElementById('yue_log').addEventListener('tap', function() {
			  //打开余额记录页
			  mui.openWindow({
			    id:'balance_record.html',
			    url:'pages/balance_record.html',
			    
			  });
		}, false);
		
		
		document.getElementById('jifen_log').addEventListener('tap', function() {
			  //打开积分记录页
			  mui.openWindow({
			    id:'record_point.html',
			    url:'/pages/record_point.html',
			    
			  });
		}, false);
		
		document.getElementById('receive_money').addEventListener('tap', function() {
			//打开转入页
			mui.openWindow({
				id: 'roll_in.html',
				url: '/pages/order/roll_in.html',
				show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			});
		}, false);

		document.getElementById('pay_money').addEventListener('tap', function() {
			//打开转出页
			mui.openWindow({
				id: 'roll_out.html',
				url: '/pages/order/roll_out.html',
				show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			});
		}, false);
		
		document.getElementById('sale_order').addEventListener('tap', function() {
			//打开转入页
			mui.openWindow({
				id: 'sell_out.html',
				url: '/pages/sell-out/sell_out.html',
				show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			});
		}, false);

		document.getElementById('buy_order').addEventListener('tap', function() {
			//打开转出页
			mui.openWindow({
				id: 'buy-in.html',
				url: '/pages/buy-in/buy_in.html',
				show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			});
		}, false);
		
		/*
		var width=document.documentElement.clientWidth;
    	var height=document.documentElement.clientHeight;
    	document.getElementById('account_pwd').style.width=width+'px';
    	document.getElementById('account_pwd').style.height=height+'px';
 		
		 //点了买入导航
		 document.getElementById('buy_type').addEventListener('tap', function() {
			document.querySelector('#segmentedControl1 .buybox.buy-left').className="buybox buy-left buy-active";
		    document.querySelector('#segmentedControl1 .buybox.buy-right').className="buybox buy-right";
		    document.getElementById('buy_list').style.display="block";
		    document.getElementById('sale_list').style.display="none";
		 });
		
		//点了卖出导航
		document.getElementById('sale_type').addEventListener('tap', function() {
			document.querySelector('#segmentedControl1 .buybox.buy-left').className="buybox buy-left";
		    document.querySelector('#segmentedControl1 .buybox.buy-right').className="buybox buy-right buy-active";
		    document.getElementById('buy_list').style.display="none";
		    document.getElementById('sale_list').style.display="block";
		});
		
		//点中国
		document.getElementById('country1').addEventListener('tap', function() {
			  //打开区域选择
			  mui.openWindow({
			    id:'area_select.html',
			    url:'pages/transaction/area_select.html',
			    extras:{
			         selected_country: document.getElementById('country1').innerHTML //自定义扩展参数，可以用来处理页面间传值
			    },
			    show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			  });
		}, false);
		
		document.getElementById('country2').addEventListener('tap', function() {
			  //打开区域选择
			  mui.openWindow({
			    id:'area_select.html',
			    url:'pages/transaction/area_select.html',
			    extras:{
			      	 selected_country: document.getElementById('country2').innerHTML //自定义扩展参数，可以用来处理页面间传值
			    },
			    show: {
					aniShow: 'pop-in'
				},
				waiting: {
					autoShow: false
				}
			  });
		}, false);
		
		mui("#buy_list").on('tap','.mairu_list .mui-btn',function(){
			//alert('买入'+this.innerHTML.trim());
			var money=this.innerHTML.trim();
			console.log(JSON.stringify(userinfo));
			if(!userinfo.bank.bank_card || !userinfo.bank.bank_account){
				mui.alert('请去绑定默认支付方式');
				return;
			}
			document.getElementById('account_pwd').style.display="block";
			document.getElementById('main_content').style.display="block";
			document.getElementById('keyboard').style.display="block";
			var pwd_array=mui('.mui-input-row.mui-password input[type="password"]');
				mui.each(pwd_array,function(index,item){
				   if(item.value!=''){
				   	   item.value='';
				   }
				}) ;
			document.getElementById('money').value=money;
			document.getElementById('buytype').value=1;
			document.getElementById('info').innerHTML='买入数额'+money;
			document.getElementById('from').value=1;

		});
		
		mui("#sale_list").on('tap','.mairu_list .mui-btn',function(){
			//alert('卖出'+this.innerHTML.trim());
			var money=this.innerHTML.trim();
			if(!userinfo.bank.bank_card || !userinfo.bank.bank_account){
				mui.alert('请去绑定默认支付方式');
				return;
			}
			document.getElementById('account_pwd').style.display="block";
			document.getElementById('main_content').style.display="block";
			document.getElementById('keyboard').style.display="block";
			var pwd_array=mui('.mui-input-row.mui-password input[type="password"]');
				mui.each(pwd_array,function(index,item){
				   if(item.value!=''){
				   	   item.value='';
				   }
				}) ;
			document.getElementById('money').value=money;
			document.getElementById('buytype').value=2;
			document.getElementById('info').innerHTML='卖出数额'+money;
			document.getElementById('from').value=1;
		});
		
		mui("#buy_list").on('tap','#item1 .do_transaction',function(){
			//匹配   买入
			var money=this.getAttribute('data-money');
			var trade_id=this.getAttribute('data-id');
			if(!userinfo.bank.bank_card || !userinfo.bank.bank_account){
				mui.alert('请去绑定默认支付方式');
				return;
			}
			document.getElementById('account_pwd').style.display="block";
			document.getElementById('main_content').style.display="block";
			document.getElementById('keyboard').style.display="block";
			var pwd_array=mui('.mui-input-row.mui-password input[type="password"]');
				mui.each(pwd_array,function(index,item){
				   if(item.value!=''){
				   	   item.value='';
				   }
				}) ;
			document.getElementById('money').value=money;
			document.getElementById('buytype').value=1;
			document.getElementById('info').innerHTML='买入数额'+money;
			document.getElementById('from').value=2;
			document.getElementById('trade_id').value=trade_id;
			
		})
			
		mui("#sale_list").on('tap','#item11 .do_transaction',function(){
			//匹配  卖出
			var money=this.getAttribute('data-money');
			var trade_id=this.getAttribute('data-id');
			if(!userinfo.bank.bank_card || !userinfo.bank.bank_account){
				mui.alert('请去绑定默认支付方式');
				return;
			}
			document.getElementById('account_pwd').style.display="block";
			document.getElementById('main_content').style.display="block";
			document.getElementById('keyboard').style.display="block";
			var pwd_array=mui('.mui-input-row.mui-password input[type="password"]');
				mui.each(pwd_array,function(index,item){
				   if(item.value!=''){
				   	   item.value='';
				   }
				}) ;
			document.getElementById('money').value=money;
			document.getElementById('buytype').value=2;
			document.getElementById('info').innerHTML='卖出数额'+money;
			document.getElementById('from').value=2;
			document.getElementById('trade_id').value=trade_id;
		})
		*/
		
		document.getElementById('close_win').addEventListener('tap', function() {
			document.getElementById('account_pwd').style.display="none";
			document.getElementById('main_content').style.display="none";
			document.getElementById('keyboard').style.display="none";
			document.getElementById('money').value='';
			document.getElementById('buytype').value='';
			document.getElementById('info').innerHTML='';
			document.getElementById('from').value='';
			document.getElementById('trade_id').value='';
		})
		
		//键盘点击删除
		mui('#keyboard').on('tap', '#numC', function() {
			var pwd_array = mui('.mui-input-row.mui-password input[type="password"]');
			var len = pwd_array.length;
			for(i = len - 1; i >= 0; i--) {
				if(pwd_array[i].value != '') {
					pwd_array[i].value = '';
					break;
				}
			}
		});
		
		//点击数字
		mui('#keyboard').on('tap', '.num.data_num', function() {
			var number = this.getAttribute('data-num');
			var pwd_array = mui('.mui-input-row.mui-password input[type="password"]');
			var f = false;
			var pwd = '';
			mui.each(pwd_array, function(index, item) {
				if(item.value == '') {
					item.value = number;
					return false;
				}
			});
		
			mui.each(pwd_array, function(index, item) {
				if(item.value == '') {
					f = true;
					return false;
				}
				pwd += item.value;
			});
		
			if(!f) {
				//mui.alert('正在后台处理...');
				var money=document.getElementById('money').value;
				var buytype=document.getElementById('buytype').value;
				
				if(document.getElementById('from').value=='1'){
					var Info = {
						user_id: userinfo.user_id,
						trade_pwd: pwd,
						type: buytype,
						money: money,
						_token:userinfo.token
					}
			        if(Info.type==1){
			        	Info.country=buy_country;
			        }
			        if(Info.type==2){
			        	Info.country=sale_country;
			        }
			        document.getElementById('account_pwd').style.display = "none";
					document.getElementById('main_content').style.display = "none";
					document.getElementById('keyboard').style.display = "none";
					document.getElementById('money').value='';
					document.getElementById('buytype').value='';
					document.getElementById('info').innerHTML='';
					document.getElementById('from').value='';
					document.getElementById('trade_id').value='';
					mui.ajax({
						url: apiurl + "Trade/do_trade/",
						data: Info,
						async: true,
						dataType: 'json',
						crossDomain: true, //强制使用5+跨域
						type: 'post',
						timeout: 10000,
						success: function(res) {
							console.log(JSON.stringify(res));
							if(res.status ==-3){
								mui.toast(res.msg);
								app.out();
								return false;
							}
							// 请求成功
							if(res.status < 1) {
								mui.alert(res.msg);
							} else {
								mui.toast(res.msg);
								userinfo.a1_money = res.data.a1_money;
								userinfo.a2_money = res.data.a2_money;
								app.setState(userinfo);
								//mui.fire(plus.webview.getLaunchWebview(), 'refresh_amoney');
								mui.fire(plus.webview.getWebviewById('order.html'), 'refresh_data');
								mui.fire(plus.webview.getWebviewById('wallet.html'), 'refresh_data');
			                    refresh_data();
			                    
			                    if(Info.type==1){
			                    	//打开买入订单详情
									mui.openWindow({
										id: 'buy_order.html',
										url: 'pages/transaction/buy_order.html',
										extras: {
											trade_id: res.order_id //自定义扩展参数，可以用来处理页面间传值
										},
										show: {
											autoShow: false
										},
										waiting: {
											autoShow: true,
											title: '正在加载...'
										}
									});
			                    }
			                   
			                    if(Info.type==2){
			                    	//打开卖出订单详情
									mui.openWindow({
										id: 'buyorder.html',
										url: 'pages/transaction/buyorder.html',
										extras: {
											trade_id: res.order_id //自定义扩展参数，可以用来处理页面间传值
										},
										show: {
											autoShow: false
										},
										waiting: {
											autoShow: true,
											title: '正在加载...'
										}
									});
			                    }
			                    
							}
						},
						error: function(xhr, type, errorThrown) {
							//console.log(JSON.stringify(xhr));
							//console.log(JSON.stringify(type));
							//console.log(JSON.stringify(errorThrown));
							mui.toast('操作失败！');
						}
					});
				}
				
				
				if(document.getElementById('from').value=='2'){
					var Info = {
						user_id: userinfo.user_id,
						trade_pwd: pwd,
						type: buytype,
						tid: document.getElementById('trade_id').value,
						_token:userinfo.token
					}
					document.getElementById('account_pwd').style.display = "none";
					document.getElementById('main_content').style.display = "none";
					document.getElementById('keyboard').style.display = "none";
					document.getElementById('money').value='';
					document.getElementById('buytype').value='';
					document.getElementById('info').innerHTML='';
					document.getElementById('from').value='';
					document.getElementById('trade_id').value='';
					mui.ajax({
						url: apiurl + "Trade/updateTrade/",
						data: Info,
						async: true,
						dataType: 'json',
						crossDomain: true, //强制使用5+跨域
						type: 'post',
						timeout: 10000,
						success: function(res) {
							console.log(JSON.stringify(res));
							if(res.status ==-3){
								mui.toast(res.msg);
								app.out();
								return false;
							}
							// 请求成功
							if(res.status < 1) {
								mui.alert(res.msg);
							} else {
								mui.toast(res.msg);
								userinfo.a1_money = res.data.a1_money;
								userinfo.a2_money = res.data.a2_money;
								app.setState(userinfo);
								//mui.fire(plus.webview.getLaunchWebview(), 'refresh_amoney');
								mui.fire(plus.webview.getWebviewById('order.html'), 'refresh_data');
								mui.fire(plus.webview.getWebviewById('wallet.html'), 'refresh_data');
			                    refresh_data();
			                    
			                    if(Info.type==1){
			                    	//打开买入订单详情
									mui.openWindow({
										id: 'buy_order.html',
										url: 'pages/transaction/buy_order.html',
										extras: {
											trade_id: res.order_id //自定义扩展参数，可以用来处理页面间传值
										},
										show: {
											autoShow: false
										},
										waiting: {
											autoShow: true,
											title: '正在加载...'
										}
									});
			                    }
			                   
			                    if(Info.type==2){
			                    	//打开卖出订单详情
									mui.openWindow({
										id: 'buyorder.html',
										url: 'pages/transaction/buyorder.html',
										extras: {
											trade_id: res.order_id //自定义扩展参数，可以用来处理页面间传值
										},
										show: {
											autoShow: false
										},
										waiting: {
											autoShow: true,
											title: '正在加载...'
										}
									});
			                    }
			                    
							}
						},
						error: function(xhr, type, errorThrown) {
							//console.log(JSON.stringify(xhr));
							//console.log(JSON.stringify(type));
							//console.log(JSON.stringify(errorThrown));
							mui.toast('操作失败！');
						}
					});
				}
				
			}
		
		})
			
			
		window.addEventListener('refresh_data',function(event){
		   refresh_data();
		});
		
		window.addEventListener('change_state',function(event){
			var selcountry=event.detail.selcountry;
		    if(document.getElementById('sale_list').style.display=="none"){
		    	document.getElementById('country1').innerHTML=selcountry;
		    	buy_country=selcountry;
		    }
		    if(document.getElementById('sale_list').style.display=="block"){
		    	document.getElementById('country2').innerHTML=selcountry;
		    	sale_country=selcountry;
		    }
            refresh_data();
		});
		
		
		window.addEventListener('refresh_bank',function(event){
		   refresh_bank();
		});
		
	});
	
	
	function refresh_bank(){
		return;
		mui.ajax({
				url: apiurl + "Trade/get_def_bank/",
				data: {'user_id':userinfo.user_id,'_token':userinfo.token},
				async: true,
				dataType: 'json',
				crossDomain: true, //强制使用5+跨域
				type: 'get',
				timeout: 10000,
				success: function(res) {
					//console.log(JSON.stringify(res));
					if(res.status ==-3){
						mui.toast(res.msg);
						app.out();
						return false;
					}
					// 请求成功
					userinfo.bank=res.data;
					app.setState(userinfo);
				},
				error: function(xhr, type, errorThrown) {
					//console.log(JSON.stringify(xhr));
					//console.log(JSON.stringify(type));
					//console.log(JSON.stringify(errorThrown));
					mui.toast('操作失败！');
				}
			});
	}
	
	//加载数据
	function refresh_data(){
		return;
        mui.ajax({
					url: apiurl + "Trade/transactlist/",
					data: {'p':1,'size':pageSize,'buy_country':buy_country,'sale_country':sale_country,'_token':userinfo.token},
					async: true,
					dataType: 'json',
					crossDomain: true, //强制使用5+跨域
					type: 'get',
					timeout: 10000,
					success: function(res) {
						console.log(JSON.stringify(res));
						if(res.status ==-3){
							mui.toast(res.msg);
							app.out();
							return false;
						}
						// 请求成功
						if(!res.status) {
							mui.toast('未获取到数据');
						} else {
							
							$('#buy_list #item1 ul').empty();
							$('#sale_list #item11 ul').empty();
							var data_1=assemble_data(res.resource2);
							$('#buy_list #item1 ul').append(data_1);
							total_page1=res.total_page2;
						    total_count1=res.sum2;
						
							var data_2=assemble_data(res.resource1);
							$('#sale_list #item11 ul').append(data_2);
							total_page2=res.total_page1;
						    total_count2=res.sum1;

						}
					},
					error: function(xhr, type, errorThrown) {
						//console.log(JSON.stringify(xhr));
						//console.log(JSON.stringify(type));
						//console.log(JSON.stringify(errorThrown));
						mui.toast('获取数据失败！');
					}
				});
				
				//循环初始化所有下拉刷新，上拉加载。
				mui.each(document.querySelectorAll('#buy_list .mui-scroll'), function(index, pullRefreshEl) {
					mui(pullRefreshEl).pullToRefresh({
						up: {
							callback: function() {
								var self = this;
								//clearTimeout(timer);
								setTimeout(function() {
									if(index==0){
										currentPage1++;
										mui.ajax({
											url: apiurl + "Trade/transactlist/",
											data: {'p':currentPage1,'size':pageSize,'type':2,'buy_country':buy_country,'sale_country':sale_country,'_token':userinfo.token},
											async: true,
											dataType: 'json',
											crossDomain: true, //强制使用5+跨域
											type: 'get',
											timeout: 10000,
											success: function(res) {
												//console.log(JSON.stringify(res));
												if(res.status ==-3){
													mui.toast(res.msg);
													app.out();
													return false;
												}
												// 请求成功
												if(!res.status) {
													mui.toast('未获取到数据');
												} else {
													var data_1=assemble_data(res.resource);
													$('#buy_list #item1 ul').append(data_1);
													if(currentPage1 < total_page1){
						                                self.endPullUpToRefresh(false);    /*能上拉*/
						                            }else{
						                                self.endPullUpToRefresh(true);/*不能上拉*/
						                            }
	                            
												}
											},
											error: function(xhr, type, errorThrown) {
												//console.log(JSON.stringify(xhr));
												//console.log(JSON.stringify(type));
												//console.log(JSON.stringify(errorThrown));
												mui.toast('获取数据失败！');
											}
										});
										return ;
									}
									
									if(index>0){
										self.endPullUpToRefresh(true);
										return ;
									}
								}, 1000);
							}
						}
					});
				});
				
				
				//循环初始化所有下拉刷新，上拉加载。
				mui.each(document.querySelectorAll('#sale_list .mui-scroll'), function(index, pullRefreshEl) {
					mui(pullRefreshEl).pullToRefresh({
						up: {
							callback: function() {
								var self = this;
								//clearTimeout(timer);
								setTimeout(function() {
									if(index==0){
										currentPage2++;
										mui.ajax({
											url: apiurl + "Trade/transactlist/",
											data: {'p':currentPage2,'size':pageSize,'type':1,'buy_country':buy_country,'sale_country':sale_country,'_token':userinfo.token},
											async: true,
											dataType: 'json',
											crossDomain: true, //强制使用5+跨域
											type: 'get',
											timeout: 10000,
											success: function(res) {
												//console.log(JSON.stringify(res));
												if(res.status ==-3){
													mui.toast(res.msg);
													app.out();
													return false;
												}
												// 请求成功
												if(!res.status) {
													mui.toast('未获取到数据');
												} else {
													var data_1=assemble_data(res.resource);
													$('#sale_list #item11 ul').append(data_1);
													if(currentPage2 < total_page2){
						                                self.endPullUpToRefresh(false);    /*能上拉*/
						                            }else{
						                                self.endPullUpToRefresh(true);/*不能上拉*/
						                            }
	                            
												}
											},
											error: function(xhr, type, errorThrown) {
												//console.log(JSON.stringify(xhr));
												//console.log(JSON.stringify(type));
												//console.log(JSON.stringify(errorThrown));
												mui.toast('获取数据失败！');
											}
										});
										return ;
									}
									
									if(index>0){
										self.endPullUpToRefresh(true);
										return ;
									}
								}, 1000);
							}
						}
					});
				});
				
	}
	    

	function assemble_data(data){
		/*
		 * <li class="mui-table-view-cell">
									<div class="buy-bdetail">
										<img class="mui-media-object mui-pull-left" src="img/logo.png">
										<div class="mui-media-body">
											<p>HEART<img src="img/unionpay.png" width="6%" style="margin-left:10px;"/>
												<span class="mui-icon iconfont icon-iconfontrectangle390"></span>
												<span class="mui-icon iconfont icon-weixinzhifu"></span>
											</p>
											<div class="credit">信任：<span>80%</span></div>
											<div class="credit">支付方式：<span>中国建设银行</span></div>
										</div>
									</div>
									<div class="number_right">
										<span class="transaction_num">交易金额:1000</span>
										<span style="overflow: hidden;">实付金额：850.00RMB</span>
										<span class="button mui-pull-right">买入</span>
									</div>
								</li>
		 */
		var htm='';
		for(z in data){
			htm+='<li class="mui-table-view-cell">';
			htm+=' <div class="buy-bdetail">';
			
			var img_path=''
			if(data[z]['buytype']==2){
				if(data[z]['has_hreadimg']==1){
					img_path=serverurl + 'Uploads/avatar/' + data[z]['user_id'] + '.jpg';
				}
				else{
					img_path='img/logo.png';
				}
			}
			
			if(data[z]['buytype']==1){
				if(data[z]['has_hreadimg']==1){
					img_path=serverurl + 'Uploads/avatar/' + data[z]['buy_user_id'] + '.jpg';
				}
				else{
					img_path='img/logo.png';
				}
			}
			
			htm+='<img class="mui-media-object mui-pull-left" src="'+img_path+'">';
			htm+='<div class="mui-media-body">';
			if(data[z]['buytype']==2){
				htm+='<p>'+data[z]['contacts'];
				if(data[z]['sk_type']==1){
					htm+='<img src="img/unionpay.png" width="6%" style="margin-left:10px;"/>';
				}
				if(data[z]['sk_type']==2){
					htm+='<span class="mui-icon iconfont icon-weixinzhifu"></span>';
				}
				if(data[z]['sk_type']==3){
					htm+='<span class="mui-icon iconfont icon-iconfontrectangle390"></span>';
				}
				
			}
			if(data[z]['buytype']==1){
				htm+='<p>'+data[z]['buy_contacts']
				if(data[z]['dk_type']==1){
					htm+='<img src="img/unionpay.png" width="6%" style="margin-left:10px;"/>';
				}
				if(data[z]['dk_type']==2){
					htm+='<span class="mui-icon iconfont icon-weixinzhifu"></span>';
				}
				if(data[z]['dk_type']==3){
					htm+='<span class="mui-icon iconfont icon-iconfontrectangle390"></span>';
				}
			}
			//htm+='<span class="mui-icon iconfont icon-iconfontrectangle390"></span>';
			//htm+='<span class="mui-icon iconfont icon-weixinzhifu"></span>';
			htm+='</p>';
			
			htm+='<div class="credit">信任：<span>100%</span></div>';
			if(data[z]['buytype']==2){
				htm+='<div class="credit">支付方式：<span>'+data[z]['bank_name']+'</span></div>';
			}
			if(data[z]['buytype']==1){
				htm+='<div class="credit">支付方式：<span>'+data[z]['buy_bank_name']+'</span></div>';
			}
            
            htm+='</div>';
			htm+='</div>';
			
			htm+='<div class="number_right">';
			htm+='<span class="transaction_num">交易金额:'+data[z]['trade_money']+'</span>';
			htm+='<span style="overflow: hidden;">实付金额：'+data[z]['amount']+'RMB</span>';
			
			if(data[z]['buytype']==2){
				htm+='<span class="button mui-pull-right do_transaction" data-type="buy" data-id="'+data[z]['id']+'" data-money="'+data[z]['trade_money']+'">买入</span>';
			}
			if(data[z]['buytype']==1){
				htm+='<span class="button mui-pull-right do_transaction" data-type="sale" data-id="'+data[z]['id']+'" data-money="'+data[z]['trade_money']+'">卖出</span>';
			}

			htm+='</div>';
			htm+='</li>';
		}
		return htm;
	}
	
	
	
	
		